const useEventStore = defineStore(
  'event',
  {
    state: () => ({
      currentEvent: null,
    }),
    actions: {
      // 修改地震事件
      changeCurrentEvent(data) {
        this.currentEvent = data;
        localStorage.setItem('currentEvent',JSON.stringify(data))
      },
    }
  })

export default useEventStore
